package main

import (
	"fmt"
)

type Person2 struct {
	name string
}

func (per Person2) eat() {
	fmt.Printf("%v,eat...", per.name)
}

func (per Person2) sleep() {
	fmt.Printf("%v,sleep...", per.name)
}

type Customer struct {
	name string
}

func (customer Customer) login(name string, pwd string) bool {
	fmt.Printf("custmer.name:%v\n", customer.name)
	if name == "amy" && pwd == "123" {
		return true
	} else {
		return false
	}
}
func main() {
	cus := Customer{
		name: "amy",
	}

	b := cus.login("amy", "124")
	fmt.Printf("b:%v\n", b)
	//per := Person2{
	//	name: "amy",
	//}
	//per.eat()
	//per.sleep()

}
